package com.block.channelext.service.action;

import com.alibaba.fastjson.JSONObject;
import com.block.channelext.factory.ChannelFactory;
import com.block.channelext.model.result.ReportResult;
import com.block.channelext.service.IActionHandleService;
import com.block.db.entity.ChannelInfo;
import org.springframework.stereotype.Service;

@Service
public class AuthActionHandlerService implements IActionHandleService {

    @Override
    public ReportResult actionTypeHandle(ChannelInfo channelInfo, JSONObject extJson) {
        return ChannelFactory.getService(channelInfo.getChannelCode()).authAction(channelInfo, extJson);
    }
}
